#!/usr/bin/env node

/*
 * @Autor: mofish
 * @Date: 2022-08-25 10:25:02
 * @LastEditors: mofish
 * @LastEditTime: 2022-08-25 14:05:17
 * @Description: 程序入口
 */

const { program } = require("commander");
const { VERSION } = require("./utils/constants");

program
  .command("init <name>")
  .description("init a preject")
  .action(async (name) => {
    /* 初始化脚手架 */
    require("./init")(name);
  });

program.version(VERSION, "-v --version");

program.parse(process.argv);
